<template>
	<view class="withdrawal">
		<view class="top">
			<view class="top1">
				<view class="tixian">
					可提现金额
				</view>
				<view class="">
					<text>￥0</text>
				</view>
			</view>
			<view class="line"></view>
			<view class="top1">
				<view class="tixian">
					申请提现金额
				</view>
				<view class="input">
					<input type="number" value="" placeholder="输入提现金额" />
				</view>
			</view>
			<view class="line"></view>
			<view class="top1">
				<view class="aa">
					提现说明
				</view>
				<view class="bb">
					余额提现
				</view>
				<view class="cc">
					保证金提现
				</view>
			</view>
		</view>
		<view class="between">
			<view class="">
				提现到
			</view>
			<radio-group name="">
				<view class="weixin">
					<view class="image">
						<view class="img">
							<image src="../../static/img/withdraw-w.png" mode=""></image>
						</view>
						<view class="" style="padding-left: 30rpx;">
							微信账户
						</view>
					</view>
					<view>
						<radio value="1" checked="true" @click="change(1)"/>
					</view>
				</view>
				<view class="line"></view>
				<view class="weixin">
					<view class="image">
						<view class="img">
							<image src="../../static/img/withdraw-z.png" mode=""></image>
						</view>
						<view class="" style="padding-left: 30rpx;">
							支付宝
						</view>
					</view>
					<view class="">
						<radio value="2" name="check" @click="change(2)"/>
					</view>
				</view>
				<view class="line"></view>
				<view class="weixin">
					<view class="image">
						<view class="img">
							<image src="../../static/img/withdraw-h.png" mode=""></image>
						</view>
						<view class="" style="padding-left: 30rpx;">
							银行卡
						</view>
					</view>
					<view class="">
						<radio value="3" name="check"  @click="change(3)"/>
					</view>
				</view>
				<view class="line"></view>
				<view class="" v-if="num==2">
					<view class="zhifubao">
						<view class="name">
							姓名：
						</view>
						<input type="text" value="" placeholder="请输入姓名" />
					</view>
					<view class="line"></view>
					<view class="zhifubao">
						<view class="name">
							支付宝：
						</view>
						<input type="text" value="" placeholder="请输入支付宝账号" />
					</view>
					<view class="line"></view>
				</view>
				<view class="" v-if="num==3">
					<view class="zhifubao">
						<view class="name">
							开户人：
						</view>
						<input type="text" value="" placeholder="请输入姓名" />
					</view>
					<view class="line"></view>
					<view class="zhifubao">
						<view class="name">
							开户行：
						</view>
						<input type="text" value="" placeholder="请输入开户行" />
					</view>
					<view class="line"></view>
					<view class="zhifubao">
						<view class="name">
							银行卡号：
						</view>
						<input type="text" value="" placeholder="请输入银行卡号" />
					</view>
					<view class="line"></view>
				</view>

			</radio-group>
		</view>
		<view class="bottom">
			<view class="shenhe">
				提交审核
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: "withdrawal",
		data() {
			return {
				num:0,
			}
		},
		methods: {
			change(val){
				// console.log(val)
				this.num=val;
			},
		}
	}
</script>

<style scoped>
	.withdrawal {
		background: rgb(238, 238, 238);
		height: 1250rpx;
	}

	.top {
		background: #FFFFFF;
		width: 100%;
		height: 320rpx;
	}

	.top1 {
		display: flex;
		flex-direction: row;
		padding: 30rpx;
		justify-content: space-between;
	}

	.line {
		width: 100%;
		border-top: 2rpx solid rgb(238, 238, 238);
	}

	.tixian {
		font-size: 16px;
	}

	.input input {
		width: 190rpx;
		text-align: right;
	}

	.aa {
		width: 140rpx;
		height: 60rpx;
		text-align: center;
		padding-top: 6px;
		border-radius: 10rpx;
		color: #FFFFFF;
		background: rgb(28, 138, 214);
	}

	.bb {
		width: 140rpx;
		height: 60rpx;
		text-align: center;
		padding-top: 6px;
		border-radius: 10rpx;
		margin-left: 140rpx;
		color: #FFFFFF;
		background: rgb(3, 169, 245);
	}

	.cc {
		width: 180rpx;
		height: 60rpx;
		text-align: center;
		padding-top: 6px;
		border-radius: 10rpx;
		color: rgb(84, 177, 248);
		border: 1px solid rgb(238, 238, 238);
	}

	.between {
		width: 100%;
		height: 640rpx;
		background: #FFFFFF;
		margin-top: 3%;
		padding: 30rpx;
	}

	.weixin {
		width: 100%;
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		margin-top: 3%;
		margin-bottom: 2%;
		align-items: center;
	}

	.image {
		display: flex;
		flex-direction: row;
		align-items: center;
		width: 30%;
	}

	.img image {
		width: 50rpx;
		height: 50rpx;
	}

	.bottom {
		margin: 0 auto;
		width: 94%;
		margin-top: 10%;
	}

	.shenhe {
		width: 100%;
		height: 80rpx;
		border-radius: 20px;
		margin-bottom: 5%;
		text-align: center;
		padding-top: 12px;
		color: #FFFFFF;
		background-image: linear-gradient(to right, rgb(53, 199, 233), rgb(30, 141, 255));
	}

	.zhifubao {
		display: flex;
		flex-direction: row;
		padding: 24rpx;
	}

	.name {
		font-size: 34rpx;
	}

	.zhifubao input {
		margin-left: 5%;
	}
</style>
